package cn.com.api.service.impl.base;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.api.entity.ApiT_order_return;
import cn.com.api.mapper.ApiT_order_returnMapper;


/**
 * 
 **/
@Service
public class T_order_returnServiceImplBase {
	@Autowired
	private ApiT_order_returnMapper apiT_order_returnMapper;
    
    // 根据id获取
	public ApiT_order_return findT_order_returnById(Integer id){
		ApiT_order_return t_order_return = apiT_order_returnMapper.findT_order_returnById( id );
		return t_order_return;
	}
    
    //查看数据集
	public List<ApiT_order_return> findT_order_returns(){
        List<ApiT_order_return> t_order_returns = apiT_order_returnMapper.findT_order_returns();
		return t_order_returns;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findT_order_returnsByMap(HashMap condition){
        List<Map<String, Object>> t_order_returns = apiT_order_returnMapper.findT_order_returnsByMap(condition);
		return t_order_returns;
    }
    
	// 添加
	public int insertT_order_return(ApiT_order_return t_order_return){
		int ret_I= apiT_order_returnMapper.insertT_order_return(t_order_return);
		return ret_I;
	}

	// 修改
	public int updateT_order_return(ApiT_order_return t_order_return){
		int ret_I= apiT_order_returnMapper.updateT_order_return(t_order_return);
		return ret_I;
	}
	
    // 删除
	public int deleteT_order_return(Integer id){
		int ret_I= apiT_order_returnMapper.deleteT_order_return( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


